<?php require './view/public/header.php'; ?>
    <!--/sidebar-->
    <div class="main-wrap">
        <div class="result-wrap">
            <div class="result-content">
                <form action=<?php echo "./index.php?c=user&a=dochange&id=$_GET[id]&nowPage=$_GET[nowPage]&auth=$_GET[auth]&uname=$_GET[uname]"; ?> method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <table class="insert-tab" width="100%">
                        <tbody>
							<tr>
                                <th><i class="require-red">*</i>用户名：</th>
                                <td>
                                    <input required class="common-text required" id="title" name="uname" size="50" value="<?php if(isset($ret['uname'])) echo $ret['uname']; ?>" type="text">
                                </td>
                            </tr>
							<tr>
                                <th>密码：</th>
                                <td><input class="common-text" name="upwd" size="50" value="" type="password"></td>
                            </tr>
							<tr>
                                <th>确认密码：</th>
                                <td><input class="common-text" name="upwd2" size="50" value="" type="password"></td>
                            </tr>
							<tr>
                                <th>性别：</th>
                                <td>
                                    <input type="radio" name="sex" value="m" <?php if(isset($ret['sex']) && ($ret['sex']=='m')) echo 'checked' ?> />男
                                    <input type="radio" name="sex" value="w" <?php if(isset($ret['sex']) && ($ret['sex']=='w')) echo 'checked' ?> />女
                                    <input type="radio" name="sex" value="x" <?php if(isset($ret['sex']) && ($ret['sex']=='x')) echo 'checked' ?> />未知
                                </td>
                            </tr>
							<tr>
								<th>头像：</th>
								<td><input type="file" name="uface" value="" /></td>
							</tr>
							<tr>
								<th>生日：</th>
								<td><input type="date" name="birth" value="<?php if(isset($ret['birth'])&&($ret['birth']!=0)) echo date('Y-m-d',$ret['birth']); else echo '0'; ?>" /></td>
							</tr>
							<tr>
								<th>手机：</th>
								<td><input type="text" name="tel" value="<?php if(isset($ret['tel'])) echo $ret['tel']; ?>" /></td>
							</tr>
							<tr>
								<th>地址：</th>
								<td><textarea name="addr" rows="5" cols="23"><?php if(isset($ret['addr'])) echo $ret['addr']; ?></textarea></td>
							</tr>
							<tr>
                            <th width="120">权限：</th>
                            <td>
                                <select name="auth" id="catid" class="required">
                                    <option value="">请选择</option>
                                    <option <?php if(isset($ret['auth']) && ($ret['auth']==0)) echo 'selected' ?> value="0">会员</option>
									<option <?php if(isset($ret['auth']) && ($ret['auth']==1)) echo 'selected' ?> value="1">管理员</option>
                                </select>
                            </td>
							</tr>
							<tr>
								<th>邮箱：</th>
								<td><input type="email" name="email" value="<?php if(isset($ret['email'])) echo $ret['email']; ?>" /></td>
							</tr>
                     
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>
    </div>
    <!--/main-->
<?php require './view/public/footer.php'; ?>